<?php
/**
 * init方法参数介绍
 * 第一个是配置文件路径或者配置数组对象
 * 第二个参数是SDK模式
 * 第三个是标识第一个参数的类型 true为数组对象 false为文件路径
 **/
/**
 * $config_object = [
 *    "api_key_live" => "api_live_9c14f264-e390-41df-984d-df15a6952031",
 *    "rsa_private_key" => "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMQhsygJ2pp4nCiDAXiqnZm6AzKSVAh+C0BgGR6QaeXzt0TdSi9VR0OQ7Qqgm92NREB3ofobXvxxT+wImrDNk6R6lnHPMTuJ/bYpm+sx397rPboRAXpV3kalQmbZ3P7oxtEWOQch0zV5B1bgQnTvxcG3REAsdaUjGs9Xvg0iDS2tAgMBAAECgYAqGFmNdF/4234Yq9V7ApOE1Qmupv1mPTdI/9ckWjaAZkilfSFY+2KqO8bEiygo6xMFCyg2t/0xDVjr/gTFgbn4KRPmYucGG+FzTRLH0nVIqnliG5Ekla6a4gwh9syHfstbOpIvJR4DfldicZ5n7MmcrdEwSmMwXrdinFbIS/P1+QJBAOr6NpFtlxVSGzr6haH5FvBWkAsF7BM0CTAUx6UNHb+RCYYQJbk8g3DLp7/vyio5uiusgCc04gehNHX4laqIdl8CQQDVrckvnYy+NLz+K/RfXEJlqayb0WblrZ1upOdoFyUhu4xqK0BswOh61xjZeS+38R8bOpnYRbLf7eoqb7vGpZ9zAkEAobhdsA99yRW+WgQrzsNxry3Ua1HDHaBVpnrWwNjbHYpDxLn+TJPCXvI7XNU7DX63i/FoLhOucNPZGExjLYBH/wJATHNZQAgGiycjV20yicvgla8XasiJIDP119h4Uu21A1Su8G15J2/9vbWn1mddg1pp3rwgvxhw312oInbHoFMxsQJBAJlyDDu6x05MeZ2nMor8gIokxq2c3+cnm4GYWZgboNgq/BknbIbOMBMoe8dJFj+ji3YNTvi1MSTDdSDqJuN/qS0="
 * ];
 * \AdaPay\AdaPay::init($config_object, "live", true);
 **/
//\AdaPay\AdaPay::init(dirname(__FILE__). '/config/config.json', "live", false);

 $config_object = [
        "api_key_live" => "api_live_18c1f0bd-bd5a-459a-bab9-13212e6af47c",
        "rsa_private_key" => "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANvNfqlihl5mCAOC
qqVdjyhrbICry2lsOAMRmdWs7fmuoDwRf0LXxJqS9i9CJ2zWNkwo+arkQ/2VhzHJ
wio5MHuLQjh0gX5PuPzry1QxbX4Makaewo3HHRuG+v7dMN0tWqgTKofY9n/wBdg8
xF7udJFD/6vXDtTOUSGKPUzXRBP5AgMBAAECgYEAxMuPDS8maRxnLmVuTdKfmyvb
ILUv0TrQR4cZueMzymocEswDqiAvacoM2zEaxWphgPzq1KO9cCzRt7URv+YmTb0Q
IX845TEAPi4C/zfKTmrcxzA/e9UQPl1ii+rLVKzYyOzoRi54WjaiXWZnGZIVUHOU
UjaYS/b2nbRKTay/wtECQQD+J+4rMEQavB0CHlWmiSrguYjXCZzGknsjSw1HH5FX
CXFV7RuAmDcVMY9iuzIRKgDWsKrK7hCzrpOobq33VbfFAkEA3WXBslEU4zDbgVQJ
7jkvpb/fHMPPGIuxjNjSjBoIc7AwqcAItQZJc9vRsJCJpzE0cNSXdkP/hDWgwZiV
D/o6pQJAY75YAisXD0b0O3icNJdwdHFb+siS9ntWSCuUMm15JKdYC1jaikUymOay
VxUQORw66Aa9gJadh2bkHB4TuBWz4QJAATS9sl/4sigg+fpgN3j+RnPeHkT+ys5w
AClqNDMsGp06FqKiKYJIQiZPZRvUdCGzfG3cCVvjd2/nWUaggT7GtQJBAMdb++/w
XahfzkKgXyf37ipB7ctRHuAnv8HDVftxu3Upg0yZ5zLQ6OPflPv6z9e4wB0pTsFz
zI10K5DNdgv+LoY="
     ];
\AdaPay\AdaPay::init($config_object, "live", true);